package org.example.workbench.service.impl;

import org.example.workbench.domain.ActivityRemark;
import org.example.workbench.mapper.ActivityRemarkMapper;
import org.example.workbench.service.ActivityRemarkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("remarkService")
public class ActivityRemarkImpl implements ActivityRemarkService {

    @Autowired
    private ActivityRemarkMapper remarkMapper;

    @Override
    public int updateRemarkById(ActivityRemark activityRemark) {
        return remarkMapper.updateRemarkById(activityRemark);
    }

    @Override
    public int deleteRemarkById(String id) {
        return remarkMapper.deleteRemarkById(id);
    }

    @Override
    public int insertOneRemark(ActivityRemark activityRemark) {
        return remarkMapper.insertOneRemark(activityRemark);
    }

    @Override
    public List<ActivityRemark> selectRemarksByActivityId(String activityId) {
        return remarkMapper.selectRemarksByActivityId(activityId);
    }
}
